<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:ui>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>无标题文档</title>
		<link rel="stylesheet" type="text/css" charset="utf-8"
			href="/hrms/css/styles.css" />
		<link rel="stylesheet" type="text/css" charset="utf-8"
			href="/hrms/css/flexigrid.css" />
		<link rel="stylesheet" type="text/css" charset="utf-8"
			href="/hrms/css/flexigrid.pack.css" />
		<link rel="stylesheet" type="text/css" charset="utf-8"
			href="/hrms/css/ztree.css" />

		<script type="text/javascript"
			src="/hrms/js/jquery-1.7.2.min.js"></script>

		<script type="text/javascript"
			src="/hrms/js/jquery.container.js"></script>

		<script type="text/javascript"
			src="/hrms/js/common.js"></script>

		<script type="text/javascript"
			src="/hrms/js/flexigrid.pack.js"></script>

		<script type="text/javascript">
		//角色信息
		var setting_role = {
			check: {
				enable: true
			},
			data: {
				simpleData: {
					enable: true
				}
			}
		};
 
		var zRoleNodes =[
			{id:1, pId:0, name:"管理员"},
			{id:2, pId:0, name:"财务部", open:true, nocheck:true},
			{id:21, pId:2, name:"出纳"},
			{id:22, pId:2, name:"会计"},
			{id:4, pId:0, name:"软件研发部", open:true, nocheck:true},
			{id:41, pId:4, name:"部门经理"},
			{id:42, pId:4, name:"部门副总"},
			{id:43, pId:4, name:"总助"}
		 ];
		 
		 //用户信息
		var setting_user = {
			check: {
				enable: true
			},
			data: {
				simpleData: {
					enable: true
				}
			}
		};
 
		var zUserNodes =[
			{id:4, pId:0, name:"软件研发部", open:true, nocheck:true},
			{id:41, pId:4, name:"A君"},
			{id:42, pId:4, name:"B君"},
			{id:43, pId:4, name:"C君"}
		 ];
	$(document).ready( function() {
		demand("userauth");
		$.fn.zTree.init($("#treeDemo_role"), setting_role, zRoleNodes);
		$.fn.zTree.init($("#treeDemo_user"), setting_user, zUserNodes);
	});
</script>

	</head>

	<body onload="loadDemand('userauth')">
		<div align="center">
			<br />
			<br />
			<br />
			<table width="80%" border="0" align="center">
				<tr>
					<td>
						<table width="100%" border="0" class="table_frame">
							<thead class="table_title">
								<tr>
									<td align="center">
										用户信息列表
									</td>
								</tr>
							</thead>
							<tr>
									<td align="center">
										<div> 
								<ul id="treeDemo_user" class="ztree" style="margin-top: 0; width: 200px; height: 240px;"></ul> 
							</div> 
									</td>
								</tr>
						</table>
					</td>
					<td>
						<table width="100%" border="0" class="table_frame">
							<thead class="table_title">
								<tr>
									<td align="center">
										授权角色列表
									</td>
								</tr>
							</thead>
							<tr>
									<td align="center">
										<div> 
								<ul id="treeDemo_role" class="ztree" style="margin-top: 0; width: 200px; height: 240px;"></ul> 
							</div> 
									</td>
								</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<input type="button" class="button_image" value="保存"  id="btn_userauth"/>
					</td>
				</tr>
			</table>
			<div align="center">
				<br />
				<br />
				<table width="90%" border="0" class="table_frame" align="center">
					<tr>
						<td align="center">
							<input id="demand" name="" type="button" value="需求收集"
								class="button_image" />
						</td>
					</tr>
					<tr>
						<td align="center">
							<div id="demand_input" style="display: none">
								<textarea rows="15" cols="120" id="demand_text"></textarea>
								<br />
								<input id="demand_save" type="button" class="button_image"
									value="保存需求" />
							</div>
						</td>
					</tr>
				</table>
				<table id="demand_des" width="90%" border="0" class="table_frame"
					align="center">
					<thead align="center" class="table_title">
						<tr>
							<td>
								需求描述
							</td>
						</tr>
					</thead>
				</table>
			</div>
		</div>
	</body>
</html>
